<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="js.js"></script>
</head>
<body>

</body>
<script>
    function parseHTML(html){
        var div=document.createElement("div");
        div.innerHTML=html;
        var arr=[];
        for(var i=0;i<div.childNodes.length;i++){
            arr.push(div.childNodes[i]);
        }
        return arr;
    }
    var a=parseHTML("<div style='width: 400px; height:400px; border: 1px solid red'>div</div>"+
            "<div style='width: 400px; height:400px; border: 1px solid red'>div</div>"+
            "<div style='width: 400px; height:400px; border: 1px solid red'>div</div>")

    for(var i=0;i< a.length;i++){
        document.body.appendChild(a[i]);
    }

</script>
</html>